<include file="Layouts:header"/><!-- BEGIN BODY -->
<body class="page-header-fixed">
<!-- BEGIN HEADER -->
<div class="header navbar navbar-inverse navbar-fixed-top">
    <include file="Layouts:navigator"/>
</div>
<!-- END HEADER --><!-- BEGIN CONTAINER -->
<div class="page-container row-fluid">
    <include file="Layouts:slider"/>
    <!-- BEGIN PAGE -->
    <div class="page-content">
        <include file="Layouts:bread_crumb"/>
        <div class="container-fluid mb-container" style="background-color: #fff;">
            <div class="tab-content">
                <div class="tab-pane  active">
                    <div class="portlet box">
                        <div class="portlet-body">
                            <div id="test_content">
                                <table class="table table-striped table-bordered table-hover table-full-width dataTable" width="100%">
                                    <thead>
                                        <tr>
                                            <th width="10%" style="padding:10px;">姓名</th>
                                            <th width="50%" style="padding:10px;">工作内容</th>
                                            <th width="20%" style="padding:10px;">开始开发时间</th>
                                            <th width="20%" style="padding:10px;">预计上线时间</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php
                                        foreach ($peopleList as $people) {
                                            if (empty($peopleIssueList[$people['id']])) {
                                            ?>
                                            <tr>
                                                <td style="padding:10px;"><?php echo $people['dept_name']; ?>-<?php echo $people['realname']; ?></td>
                                                <td style="padding:10px;"></td>
                                                <td style="padding:10px;"></td>
                                                <td style="padding:10px;"></td>
                                            </tr>
                                            <?php
                                            } else {
                                                $count = 1;
                                                foreach ($peopleIssueList[$people['id']] as $issue) {
                                                ?>
                                                <tr>
                                                    <?php
                                                    if ($count == 1) {
                                                    ?>
                                                    <td style="padding:0 10px;" rowspan="<?php echo sizeof($peopleIssueList[$people['id']]); ?>"><?php echo $people['dept_name']; ?>-<?php echo $people['realname']; ?></td>
                                                    <?php
                                                    }
                                                    ?>
                                                    <td style="padding:10px;">
                                                        <span style="<?php echo $issue['critical'] == 3 ? 'color:red;' : '' ?>" title="<?php echo $issue['description'] ?>"><?php echo $issue['name'] ?></span><br>
                                                    </td>
                                                    <td style="padding:10px;">
                                                        <span style="<?php echo $issue['critical'] == 3 ? 'color:red;' : '' ?>"><?php echo $issue['develop_time'] ?></span>
                                                    </td>
                                                    <td style="padding:10px;">
                                                        <span style=";<?php echo $issue['critical'] == 3 ? 'color:red;' : '' ?>"><?php echo $issue['wish_time'] ?></span>
                                                    </td>
                                                </tr>
                                                <?php
                                                    $count++;
                                                }
                                            }
                                        }
                                        ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- loading start -->
        <div id="loadingBox"
             style="display:none;position: fixed; left: 50%; top: 50%; width: 150px; height: 150px; margin-left: -75px; margin-top: -75px;">
            <img src="/Public/frontapp/media/image/loading-spinner.gif"/>
        </div>
        <!-- loading end -->
        <!-- mask start -->
        <div id="mask" class="modal-backdrop" style="display:none;">
        </div>
        <!-- mask end -->
        <include file="Layouts:add_issue_window"/>
    </div>
    <include file="Layouts:foot_page"/>
    <script type="text/javascript" src="/Public/frontapp/sea.js">
    </script>
    <script type="text/javascript" src="/Public/frontapp/config/config.js">
    </script>
    <script type="text/javascript" src="/Public/frontapp/lib/seajs-text.js">
    </script>
    <script type="text/javascript">
        seajs.use("/Public/frontapp/src/chart/people_current.js?v20150819");
        var date = '<?php echo $date; ?>';
    </script>
</body>
<!-- END BODY -->
</html>
